package com.toe.common.exception;

import com.toe.common.restful.StateEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 业务异常
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ToeServiceException extends RuntimeException {

    private StateEnum state;

    public ToeServiceException(StateEnum state, String message) {
        super(message);
        setState(state);
    }

}
